package com.wk.springboot.springbootproject.controller;

import com.wk.springboot.springbootproject.bean.Eat;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class EatController {

    @RequestMapping("/eat")
    public Eat getEat(){

        Eat eat = new Eat();
        eat.setCoffee("咖啡");
        eat.setNoodle("面条");

        return eat;
    }
}
